package com.l.web.service.system.config;

import com.l.web.service.ControllerSupport;
import com.l.web.service.ServiceSupport;

public class ConfigController extends ControllerSupport {

    public String execute() {
        String name = "Config";
        ServiceSupport service;
        String rsstr = "";

        switch (act) {
            case ADD:
                service = getService(name + "AddService");
                break;
            case UPDATE:
                service = getService(name + "UpdateService");
                break;
            case REMOVE:
                service = getService(name + "RemoveService");
                break;
            case DETAIL:
                service = getService(name + "DetailService");
                break;
            case LIST:
                service = getService(name + "ListService");
                break;
            default:
                service = getService(name + "Service");
        }

        rsstr = service.execute();
        return rsstr;
    }
}
